DWfile.copy()

Availability 3.0
Description Copies the specified file to the specified URL.
Arguments originalURL, copyURL
The first argument is the file you want to copy, expressed as a file:// URL.
The second argument is the location to which the copied file should be saved, expressed as a file:// URL.
Returns TRUE if the copy succeeded, FALSE otherwise.
Example The following code copies a file called myconfig.cfg to myconfig_backup.cfg.
var fileURL = "file:///c|/Config/myconfig.cfg";
var newURL ="file:///c|/Config/myconfig_backup.cfg"; 
DWfile.copy(fileURL, newURL);